package com.myc.demo3.teacher.controller;

import com.myc.demo3.teacher.service.PermService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: mayc
 * @Date: 2020/1/2 10:01
 */
@RestController
@RequestMapping("teacher")
public class TeacherController {

    @Autowired
    private PermService permService;

    @RequestMapping(value = "getPerm/{id}", method = {RequestMethod.GET})
    public String getPerm(@PathVariable("id")Long id) {
        return permService.getPermById(id);
    }

}
